<%-- 
    Document   : buscarPersona
    Created on : 23-feb-2012, 2:25:18
    Author     : etebes
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Busqueda de personas</title>

    </head>

    <body>
        <script type="text/javascript">
            function buscarPersonaPorId(id)
            {
                if(id=="hola"){
                    document.write("hola")
                }
                else{
                    alert("usted busco "+id);
                }
            }
        </script>

        <div>
            <form action=""  id="formBusquedaPersona">
                <div>
                    Ingrese el id
                </div>
                <div>
                    <span>
                        <input type="text" id="tIdPersona">
                    </span>
                    <span>
                        <button id="bBuscarPersonaPorId" onclick="buscarPersonaPorId(document.forms['formBusquedaPersona'].tIdPersona.value)">Buscar
                        </button>
                    </span>
                </div>
            </form>
        </div>
    </body>

</html>
